﻿<%@ Page Language="C#" AutoEventWireup="true" CodeFile="GoodSalesLimit.aspx.cs" Inherits="BalanceCenter_GoodSalesLimit" %>

<%@ Register Assembly="Shove.Web.UI.2 For.NET 2.0" Namespace="Shove.Web.UI" TagPrefix="ShoveWebUI" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <title>工资管理系统 - 会员中心</title>
    <link href="../Style/css.css" rel="stylesheet" type="text/css" />
    <link href="../Style/main.css" rel="stylesheet" type="text/css" />

    <script src="../My97DatePicker/WdatePicker.js" type="text/javascript"></script>

</head>
<body>
    <form id="form1" runat="server">
    <div style="text-align: center;">
        <span style="font-size: 12pt; color: #3399cc"><strong>会员某个时间段 -- 消费额的限制</strong></span>
        <table width="96%" border="0" cellspacing="0" cellpadding="0" align="center">
            <tr>
                <td height="40" align="center" colspan="2">
                    <asp:DataGrid ID="g" runat="server" AllowSorting="True" AutoGenerateColumns="False"
                        CellPadding="1" BorderColor="Silver" PageSize="20" AllowPaging="True" Font-Names="宋体"
                        BorderWidth="2px" Width="100%" BorderStyle="None" OnItemDataBound="g_ItemDataBound" OnItemCommand="g_ItemCommand">
                        <FooterStyle ForeColor="#330099" BackColor="#FFFFFF"></FooterStyle>
                        <SelectedItemStyle Font-Bold="True" ForeColor="#663399" Font-Italic="False" Font-Overline="False"
                            Font-Strikeout="False" Font-Underline="False"></SelectedItemStyle>
                        <HeaderStyle HorizontalAlign="Center" ForeColor="Navy" VerticalAlign="Middle" BackColor="#F7F7F7">
                        </HeaderStyle>
                        <Columns>
                            <asp:HyperLinkColumn Target="_blank" DataNavigateUrlField="UserID" DataNavigateUrlFormatString="EditUser.aspx?id={0}"
                                DataTextField="Name" HeaderText="消费ID">
                                <HeaderStyle HorizontalAlign="Center" Font-Size="14px" Height="25px" ForeColor="Black">
                                </HeaderStyle>
                                <ItemStyle HorizontalAlign="Center"></ItemStyle>
                            </asp:HyperLinkColumn>
                            <asp:BoundColumn DataField="RealityName" SortExpression="RealityName" HeaderText="真实姓名">
                                <HeaderStyle HorizontalAlign="Center" Font-Size="14px" ForeColor="Black"></HeaderStyle>
                                <ItemStyle HorizontalAlign="Center"></ItemStyle>
                            </asp:BoundColumn>
                            <asp:BoundColumn DataField="TypeName" SortExpression="GoodNo" HeaderText="商品名称">
                                <HeaderStyle HorizontalAlign="Center" Font-Size="14px" ForeColor="Black"></HeaderStyle>
                            </asp:BoundColumn>
                            <asp:BoundColumn DataField="Price" SortExpression="Price" HeaderText="价格">
                                <HeaderStyle HorizontalAlign="Center" Font-Size="14px" ForeColor="Black"></HeaderStyle>
                            </asp:BoundColumn>
                            <asp:TemplateColumn HeaderText="消费总额">
                                <HeaderStyle HorizontalAlign="Center" Font-Size="14px" ForeColor="Black"></HeaderStyle>                                
                                <ItemTemplate>
                                    <asp:TextBox ID="tbSalesMoney" runat="server" Width="100px" BorderWidth="1px" MaxLength="10"
                                        Height="20px"></asp:TextBox>&nbsp;
                                </ItemTemplate>
                            </asp:TemplateColumn>
                            <asp:TemplateColumn HeaderText="消费时间(天)">
                                <HeaderStyle HorizontalAlign="Center" Font-Size="14px" ForeColor="Black"></HeaderStyle>
                                <ItemTemplate>
                                    <asp:TextBox ID="tbSalesDay" runat="server" Width="60px" BorderWidth="1px" MaxLength="10"
                                        Height="20px"></asp:TextBox>&nbsp;
                                </ItemTemplate>
                            </asp:TemplateColumn>
                            <asp:TemplateColumn HeaderText="操作">
                                <HeaderStyle HorizontalAlign="Center" Font-Size="14px" ForeColor="Black"></HeaderStyle>
                                <ItemTemplate>
                                    <ShoveWebUI:ShoveConfirmButton ID="btnGO" runat="server" BorderStyle="Solid" Width="60px"
                                        BorderWidth="1px" AlertText="确定立即修改吗?" Text="确认修改" Height="20px" CommandName="btnGO">
                                    </ShoveWebUI:ShoveConfirmButton>
                                </ItemTemplate>
                            </asp:TemplateColumn>
                            <asp:BoundColumn Visible="False" DataField="UserID" SortExpression="id"></asp:BoundColumn>
                            <asp:BoundColumn Visible="False" DataField="id" SortExpression="id"></asp:BoundColumn>
                        </Columns>
                    </asp:DataGrid>
                    <ShoveWebUI:ShoveGridPager ID="gPager" runat="server" Width="100%" ShowSelectColumn="False"
                        DataGrid="g" AlternatingRowColor="White" GridColor="Silver" HotColor="MistyRose"
                        Visible="False" OnPageWillChange="gPager_PageWillChange" OnSortBefore="gPager_SortBefore" />
                </td>
            </tr>
            <tr>
                <td>
                    <asp:TextBox ID="tbUserNo" runat="server" Width="140px"></asp:TextBox>&nbsp;&nbsp;
                    <asp:Button ID="btnAdd" runat="server" Text="添加会员" Width="100px" 
                        onclick="btnAdd_Click" />&nbsp;<font color="red">添加你要限制的会员</font>
                </td>
            </tr>
        </table>
    </div>
    </form>
</body>
</html>
